/**
 * 音高类
 * @author liaosh
 * @date 2022-10-22 21:12
 */
public class Scale extends Expression {

    /**
     * 根据解析结果进行执行
     * @param key
     * @param value
     */
    @Override
    public void execute(String key, double value) {
        String scale = "";
        switch((int) value) {
            case 1:
                scale = "低音";
                break;
            case 2:
                scale = "中音";
                break;
            case 3:
                scale = "高音";
                break;
            default:
                break;
        }
        System.out.print(scale + " ");
    }
}
